home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / pgoodbye.c < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  552 b   |  29 lines

  1. #include "bbs.h"
  2.  
  3. int PGoodbye(void)
  4. {
  5. int i,stat;
  6.  
  7.  
  8.  for(i=10; i>=0; i--)    {
  9.         sprintf(GSTR1,"Last chance!  Auto LOGOFF in %d SECS.  Abort: (Enter)=yes? ",i);
  10.         AEPutStr("\r\n");
  11.         //if(AnsiColor)
  12.         AEPutStr("A");
  13.         AEPutStr(GSTR1);
  14.         stat=ReadChar(1L);
  15.         if(stat>0)    {
  16.             switch(stat) {
  17.                 case 'n': case 'N':
  18.                     AEPutStr("No\r\n\r\n");
  19.                     return(GOODBYE);
  20.                 case 'y': case 'Y':    case '\n':    case '\r':
  21.                     AEPutStr("Yes\r\n\r\n");
  22.                     return(SUCCESS);
  23.             }
  24.         }
  25.     }
  26.  AEPutStr("\r\n");
  27.  return(GOODBYE);
  28. }
  29.